/**
 * CSS files with the .module.css suffix will be treated as CSS modules
 * and scoped locally.
 */

/*.heroBanner {*/
/*  padding: 4rem 0;*/
/*  text-align: center;*/
/*  position: relative;*/
/*  overflow: hidden;*/
/*}*/

/*@media screen and (max-width: 996px) {*/
/*  .heroBanner {*/
/*    padding: 2rem;*/
/*  }*/
/*}*/

/*.buttons {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*}*/

/* src/pages/index.module.css */

:global(body),
:global(html) {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ifm-background-color);
}

:global(#__docusaurus) {
  min-height: 100%;
}

/* Hero区域 - 紧凑现代风格 */
.heroBanner {
  position: relative;
  text-align: center;
  padding: 4rem 0;
  background: var(--ifm-background-color);
  color: var(--ifm-color-emphasis-900);
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
  overflow: hidden;
}

/* 背景装饰 - 简化并减小尺寸 */
.heroBanner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 60%;
  height: 60%;
  background: var(--ifm-color-primary);
  opacity: 0.03;
  border-radius: 50%;
  transform: scale(2);
}

.heroBanner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 60%;
  height: 60%;
  background: var(--ifm-color-primary);
  opacity: 0.03;
  border-radius: 50%;
  transform: scale(2);
}

.heroContent {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 1;
}

.heroTitle {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(
          135deg,
          var(--ifm-color-primary) 0%,
          var(--ifm-color-primary-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  line-height: 1.1;
  animation: fadeIn 0.8s ease-out;
}

.heroSubtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ifm-color-emphasis-700);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.4;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

/* 添加装饰元素 */
.heroDecorator {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.5;
  mask-image: radial-gradient(circle at center, transparent 40%, black 70%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 40%, black 70%);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 主内容区域 - 减小上边距 */
.main {
  padding: 3rem 0;
  background: var(--ifm-background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 分类部分 */
.categorySection {
  margin-bottom: 4rem;
}

.categoryTitle {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--ifm-color-emphasis-700);
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* 卡片网格 */
.cardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* 现代简约卡片样式 */
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--ifm-background-surface-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--ifm-color-emphasis-200);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--ifm-color-primary);
  text-decoration: none;
}

.cardContent {
  padding: 1.5rem;
}

.cardTitle {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ifm-color-emphasis-800);
}

/* 响应式设计优化 */
@media screen and (max-width: 768px) {
  .heroBanner {
    padding: 3rem 0;
  }

  .heroTitle {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .heroSubtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

/* 暗色模式适配 */
[data-theme='dark'] .heroBanner {
  background: var(--ifm-background-color);
  border-bottom-color: var(--ifm-color-emphasis-300);
}

[data-theme='dark'] .heroTitle {
  background: linear-gradient(
          135deg,
          var(--ifm-color-primary-lighter) 0%,
          var(--ifm-color-primary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

